.class Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;
.super Ljava/lang/Object;
.source "RewardsView.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->onPrepared(Landroid/media/MediaPlayer;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)V
    .locals 0
    .parameter

    .prologue
    .line 1010
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 1014
    invoke-static {}, Lcom/burstly/lib/util/Utils;->lowerCurrentThreadPriority()V

    .line 1015
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;
    invoke-static {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$100(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    move-result-object v3

    invoke-virtual {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;->getVideoView()Landroid/widget/VideoView;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/VideoView;->getDuration()I

    move-result v3

    #setter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I
    invoke-static {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$002(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;I)I

    .line 1016
    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I
    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$000(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)I

    move-result v2

    if-nez v2, :cond_1

    const/16 v2, 0x3e8

    :goto_0
    #setter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I
    invoke-static {v3, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$002(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;I)I

    .line 1017
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I
    invoke-static {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$000(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)I

    move-result v3

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->updateDataObject(II)V

    .line 1018
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v3, "javascript:burstly_dispatchPlay();"

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->loadUrl(Ljava/lang/String;)V

    .line 1019
    :goto_1
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mStopped:Z
    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$200(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 1020
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;
    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$100(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    move-result-object v2

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoLayout:Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;
    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$100(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/VideoViewPane;->getVideoView()Landroid/widget/VideoView;

    move-result-object v1

    .line 1021
    .local v1, video:Landroid/widget/VideoView;
    :goto_2
    if-nez v1, :cond_3

    .line 1033
    .end local v1           #video:Landroid/widget/VideoView;
    :cond_0
    return-void

    .line 1016
    :cond_1
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I
    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$000(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)I

    move-result v2

    goto :goto_0

    .line 1020
    :cond_2
    const/4 v1, 0x0

    goto :goto_2

    .line 1024
    .restart local v1       #video:Landroid/widget/VideoView;
    :cond_3
    invoke-virtual {v1}, Landroid/widget/VideoView;->getCurrentPosition()I

    move-result v0

    .line 1025
    .local v0, currentPosition:I
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I
    invoke-static {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$000(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)I

    move-result v2

    if-ge v0, v2, :cond_4

    .line 1026
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    #getter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mDuration:I
    invoke-static {v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$000(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;)I

    move-result v3

    invoke-virtual {v2, v3, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->updateDataObject(II)V

    .line 1027
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v3, "javascript:burstly_dispatchTimeupdate();"

    invoke-virtual {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->loadUrl(Ljava/lang/String;)V

    .line 1031
    :goto_3
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->sleep()V

    goto :goto_1

    .line 1029
    :cond_4
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$20;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const/4 v3, 0x1

    #setter for: Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mStopped:Z
    invoke-static {v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->access$202(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Z)Z

    goto :goto_3
.end method
